<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			/*a = prompt("请输入你想知道的年份","2020")
			function fun(i){
				if((i % 4 ==0 && i % 100 != 0) || (i % 400 == 0 )){
					alert("你真幸运，今年就是闰年呢");
				}else{
					alert("今年不是闰年呢");
				}
			}
			fun(a)*/
			/*a = prompt('请输入你的分数')
			function funshu(s){
				if(a >= 80 && a <=100){
					alert('良好')
				}else if(a >= 60 && a <= 80){
					alert('你可真菜啊')
				}else if(a >= 0 && a <= 60){
					alert('你可真是个弟弟啊')
				}else {
					alert('请输入有效数字')
				}
			}
			funshu(a)*/
			/*a = prompt('请输入你的分数')
			function funshu(s){
				if(a == 100){
					alert('兰博基尼拿去')
				}else if(a >= 90 && a < 100){
					alert('MP4,拿去')
				}else if(a >= 60 && a <= 90){
					alert('参考书，拿去')
				}else if(a < 60 && a >= 0){
					alert('撅腚吧')
				}else {
					alert('请输入有效数字')
				}
			}
			funshu(a)*/
			//2.html 
				/*var t = 4000;
				var j = 4000;
				for (var moth = 0 ;moth < 13; moth++) {
					if(moth > 0 && moth <4){
				 		console.log("头等舱" + moth + "月的价格为" + t * 0.6);
						console.log("经济舱" + moth + "月的价格为" + j * 0.9);
					}else if(moth >=4 && moth <13){
						console.log("头等舱" + moth + "月的价格为" + t * 0.9);
						console.log("经济舱" + moth + "月的价格为" + j * 0.75);
			}				
				}
			
			var x = 0
			var y = 0
			for (x = 0 ; x <35 && 2 * x<=98; x++){
				for (y = 0 ; y < 35-x && 4*y <= 98; y++){
					if(x+y==35 && 2*x + 4*y==98){
						console.log(x,y)
					}
					
				}
				
				
			}*/
			
			
			/* var sum=1;
			var d=10;
			console.log("第 "+10+" 天,桃子个数: 1");
			for(var i=d;i>1;i--){
				sum=(1+sum)*2;
				console.log("第"+(i-1)+"天,桃子个数:",sum);
			} */
			
			
				/* function fn1(b){
				var num = 0;
				function fn(a){
					if (a == 1) {
						return 1;
					} else{
						return a * fn(a - 1)
					}
				}
				var x = fn(b);
				return num+=x;
			}
			var y = fn1(6)
			console.log(y) */
			
			
			/* function fn(a){
				if (a == 1) {
					return 1;
				} else{
					return a * fn(a - 1)
				}
			}
			var x = fn(5);
			console.log(x); */
			
			
		</script>
	</body>
</html>
